const BASE_URL = process.env.VUE_APP_BASE_URL
const baseUrl = BASE_URL+ '/sem/';
const couponUrl = baseUrl + 'coupon/';
const couponPage = couponUrl + 'page';
const saveCoupon = couponUrl + 'save';
const removeCoupon = couponUrl + 'remove';
const queryCoupon = couponUrl + 'queryById';
const publishCoupon = couponUrl + 'saveCouponItem';
const enableCoupon = couponUrl + 'updateStatus2Open';
const disableCoupon = couponUrl + 'updateStatus2Close';
const exportCouponBatch = couponUrl + 'query4Export';

const couponItemUrl = baseUrl + 'couponItem/';
const couponItemList = couponItemUrl + 'pageByCouponId';
const couponItemStat = couponItemUrl + 'statByCouponId';

const giftCardUrl = baseUrl + 'giftCard/';
const giftCardPage = giftCardUrl + 'page';
const saveGiftCard = giftCardUrl + 'save';
const removeGiftCard = giftCardUrl + 'remove';
const queryGiftCard = giftCardUrl + 'queryById';
const giftCardSecret = giftCardUrl + 'querySecret';
const exportGiftCardBatch = giftCardUrl + 'query4Export';
const giftCardBatchPage = giftCardUrl + 'batch/page';
const saveGiftCardBatch = giftCardUrl + 'batch/save';
const queryGiftCardBatch = giftCardUrl + 'batch/queryById';
const giftCardStat = giftCardUrl + 'statByBatchId';

const ruleUrl = baseUrl + 'couponRule/';
const semRulePage = ruleUrl + 'page';
const saveSemRule = ruleUrl + 'save';
const removeSemRule = ruleUrl + 'remove';
const querySemRule = ruleUrl + 'queryById';
const semRuleTypeList = ruleUrl + 'queryAllRuleTypeDict';
const enableSemRule = ruleUrl + 'update2Valid';
const disableSemRule = ruleUrl + 'update2InValid';
export default {
  couponPage, saveCoupon, removeCoupon, queryCoupon, publishCoupon, enableCoupon, disableCoupon, exportCouponBatch,
  couponItemList, couponItemStat,
  giftCardPage, saveGiftCard, removeGiftCard, queryGiftCard, giftCardSecret, exportGiftCardBatch, giftCardBatchPage, saveGiftCardBatch, queryGiftCardBatch, giftCardStat,
  semRulePage, saveSemRule, removeSemRule, querySemRule, semRuleTypeList, enableSemRule, disableSemRule
}
